-- GENERATED SPELL FOR [Rattlebore] --


function spell0_26360(pUnit, Event) --@Corroded Mind,n/a--
pUnit:FullCastSpellOnTarget(51203,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26360', 10000, 1)
end

function spell1_26360(pUnit, Event) --@Corrosive Spit,n/a--
pUnit:FullCastSpellOnTarget(47447,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26360', 16000, 1)
end

function spell2_26360(pUnit, Event) --@Powerful Bite,n/a--
pUnit:FullCastSpellOnTarget(48287,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26360', 5349, 1)
end

function Sorts_26360(pUnit, Event)
local choix_sorts_26360 = math.random(0, 2)
if choix_sorts_26360 == 0 then
pUnit:RegisterEvent('spell0_26360', 1, 1)
end
if choix_sorts_26360 == 1 then
pUnit:RegisterEvent('spell1_26360', 1, 1)
end
if choix_sorts_26360 == 2 then
pUnit:RegisterEvent('spell2_26360', 1, 1)
end
end

function mob26360_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26360', math.random(1500, 3000), 1)
end

function mob26360_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26360_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26360_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26360, 1, 'mob26360_Action')
RegisterUnitEvent(26360, 2, 'mob26360_Leave')
RegisterUnitEvent(26360, 3, 'mob26360_Kill')
RegisterUnitEvent(26360, 4, 'mob26360_Die')
